﻿using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace Entity.Core
{
    /// <summary>
    /// 基础实体
    /// </summary>
    public class BaseEntity
    {
        #region Entity 模式

        /// <summary>
        /// Dto模式
        /// </summary>
        private EntityMode _entityMode = EntityMode.Select;

        /// <summary>
        /// Dto模式
        /// </summary>
        [JsonProperty("entity_mode"),Column(IsIgnore = true)]
        public virtual EntityMode EntityMode
        {
            get { return _entityMode; } 
            set { _entityMode = value; }
        }
        #endregion  Entity 模式 
    }
}